import request from '@/utils/request'

// 查询收款账户列表
export function listSysBillAccount(query) {
  return request({
    url: '/life/sysBillAccount/list',
    method: 'get',
    params: query
  })
}

// 查询收款账户详细
export function getSysBillAccount(id) {
  return request({
    url: '/life/sysBillAccount/' + id,
    method: 'get'
  })
}

// 新增收款账户
export function addSysBillAccount(data) {
  return request({
    url: '/life/sysBillAccount',
    method: 'post',
    data: data
  })
}

// 修改收款账户
export function updateSysBillAccount(data) {
  return request({
    url: '/life/sysBillAccount',
    method: 'put',
    data: data
  })
}

// 删除收款账户
export function delSysBillAccount(id) {
  return request({
    url: '/life/sysBillAccount/' + id,
    method: 'delete'
  })
}
